//
//  XZSearchCell.m
//  Teecloud
//
//  Created by PC on 2018/11/2.
//  Copyright © 2018年 小志. All rights reserved.
//

#import "XZSearchCell.h"

@implementation XZSearchCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.searchKey.userInteractionEnabled = true;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(keyTapAction)];
    [self.searchKey addGestureRecognizer:tap];
}
- (void)keyTapAction{
    if (self.searchBlock) {
        self.searchBlock(self.searchKey.text);
    }
}
@end
